package com.ty.game.filter;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * @author: Troy.Chen(失足程序员, 15388152619)
 * @version: 2021-08-05 17:08
 **/
@Slf4j
@Configuration
public class InterceptorRegister extends WebMvcConfigurerAdapter {

    /*
     * 添加拦截器
     */
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new HandlerInterceptorAdapter());
        super.addInterceptors(registry);
    }

}
